<template>
  <div>
    <app-head></app-head>
    <app-navber></app-navber>
    <router-view />
  </div>
</template>

<script>
//引入子组件
import appHead from "@/components/appHead";
// import appMain from "@/components/appMain";
import appNavber from "@/components/appNavber";

export default {
  data() {
    return {};
  },
  //注册组件
  components: {
    appHead,
    appNavber
  },

  methods: {}
};
</script>

<style scoped>
.header {
  position: absolute;
  line-height: 50px;
  padding: 0px;
  top: 0px;
  left: 0px;
  right: 0px;
  background-color: #2d3a4b;
}
/* 左侧导航栏 */
.navbar {
  position: absolute;
  width: 230px;
  top: 50px;
  left: 0px;
  bottom: 0px;
  overflow-y: auto;
  background-color: #545c64;
}
/* 右侧主区域 */
</style>